Skip to content

[NV] Speedbench-al: fix --chat-template-kwargs default quoting so thinking-on cells run#1685

Closed
qiching wants to merge 1 commit into
SemiAnalysisAI:mainfrom
qiching:albecheng/speedbench-fix-ctk-quoting
Closed

[NV] Speedbench-al: fix --chat-template-kwargs default quoting so thinking-on cells run#1685
qiching wants to merge 1 commit into
SemiAnalysisAI:mainfrom
qiching:albecheng/speedbench-fix-ctk-quoting

Conversation

@qiching

@qiching qiching commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

The collector set CHAT_TEMPLATE_KWARGS_ON="${VAR:-{...}}", but bash ends the parameter expansion at the first }, so the trailing } is appended as a literal. It worked locally because the var was unset (default path lands on a single brace), in CI the workflow passes the var in, so the value became {...}} invalid JSON. Fixed by moving the default into its own variable so there are no brace-literals in the expansion.

Parent PR: #1650


Note

Low Risk
Single-line bash env default change in a benchmark collector script; no production serving or auth paths affected.

Overview
Fixes thinking-on SPEED-Bench AL collection in CI by correcting how the default CHAT_TEMPLATE_KWARGS_ON JSON is assigned in dsv4_fp4_b300_vllm.sh.

The previous inline default inside ${CHAT_TEMPLATE_KWARGS_ON:-{...}} was parsed incorrectly by bash (expansion stops at the first }), which could yield malformed JSON when the workflow exports the variable. The default is now stored in DEFAULT_CHAT_TEMPLATE_KWARGS_ON and referenced via ${CHAT_TEMPLATE_KWARGS_ON:-$DEFAULT_CHAT_TEMPLATE_KWARGS_ON}, so --chat-template-kwargs gets valid {"thinking": true, "reasoning_effort": "high"} for thinking-on cells.

Reviewed by Cursor Bugbot for commit e101f36. Bugbot is set up for automated code reviews on this repo. Configure here.

@qiching qiching requested a review from a team June 8, 2026 18:25
@qiching qiching changed the title speedbench-al: fix --chat-template-kwargs default quoting so thinking-on cells run [NV] Speedbench-al: fix --chat-template-kwargs default quoting so thinking-on cells run Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants